<div class="phankenhxls index">
<h2><?php __('Kết quả IMPORT phân kênh ở bảng tạm');?></h2>
<p>
<?php
  echo '<strong>Có  '.count($kenhxls).' kênh được import thành công</strong>';
?></p>

<table cellpadding="0" cellspacing="0" id="tables">
<tr>
	<th><?php echo ('id');?></th>
	<th><?php echo ('loaikenh_id');?></th>
	<th><?php echo ('makenh');?></th>
	<th><?php echo ('tenkenh');?></th>
	<th><?php echo ('diachi');?></th>
	<th><?php echo ('sdt');?></th>
	<th><?php echo ('donvi_id');?></th>
	
</tr>
<?php
$i = 0;
foreach ($kenhxls as $kenhxl):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $i//$kenhxl['Kenhxl']['id']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Loaikenh']['loaikenh']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Kenhxl']['makenh']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Kenhxl']['tenkenh']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Kenhxl']['diachi']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Kenhxl']['sdt']; ?>
		</td>
		<td>
			<?php echo $kenhxl['Donvi']['tendv']; ?>
		</td>
	
	</tr>
<?php endforeach; ?>
<tr>
</tr>
</table>
<p>
<?php
  echo '<strong>Có  '.count($phankenhxls).' dòng dữ liệu PHÂN KÊNH được import thành công</strong>';
?></p>
<table cellpadding="0" cellspacing="0" id="tables">
<tr>
	<th><?php echo ('id');?></th>
	<th><?php echo ('kenh_id');?></th>
	<th><?php echo ('nhanvien_id');?></th>
	<th><?php echo ('ngaybd_hd');?></th>
	<th><?php echo ('ngaykt_hd');?></th>
	</tr>
<?php
$i = 0;
foreach ($phankenhxls as $phankenhxl):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $i//$phankenhxl['Phankenhxl']['id']; ?>
		</td>
		<td>
			<?php echo $phankenhxl['Phankenhxl']['makenh']; ?>
		</td>
		<td>
			<?php echo $phankenhxl['Phankenhxl']['nhanvien_id']; ?>
		</td>
		<td>
			<?php echo $phankenhxl['Phankenhxl']['ngaybd_hd']; ?>
		</td>
		<td>
			<?php echo $phankenhxl['Phankenhxl']['ngaykt_hd']; ?>
		</td>
		
	</tr>
<?php endforeach; ?>
<th colspan="8" align="center">
        <?php echo $html->link(__('Lưu vào csdl', true), array('action' => 'luu'));?>
</th>
</table>
</div>
